package com.shop;

import com.shop.db.IDBAccess;
import com.shop.product.Product;
import com.shop.product.ProductShortInfo;

public class Catalog {
  private IDBAccess db = null;
  
  public void setDBAccess(IDBAccess db) {
    this.db = db;
  }
  
  public Product getProduct(String name) {
    return db.retrieveProduct(name);
  }
  
  public ProductShortInfo getProductInfo(String name) {
    return db.retrieveProductShortInfo(name);
  }
  
  
}
